package pieces;

import java.util.ArrayList;
import model.*;

/**
 * This class is a subclass of Pieces that is extended by {@link pieces.King} and {@link pieces.Pawn}
 * @author Sacha Best
 */
public abstract class MoveDependent extends Piece
{
	private final Location originalLoc;
	public MoveDependent(Location loc, GridGame<Piece> grid, int id, int player)
	{
		super(loc, grid, id, player);
		this.originalLoc = loc;
	}
	protected boolean hasMoved()
	{
		return originalLoc != currentLoc;
	}
	@Override
	public abstract ArrayList<Location> getMoveLocations();
}
